/**
 * Created by mango on 2017/3/2.
 */

let template = {
    enter: "\r\n",
    getLine: function (leve, entity) {
        return (this.getBlank(leve) + "* [" + entity.title + "](" + (entity.filePath + entity.fileName + '.md') + ")" + this.enter);
    },
    getBlank: function (leve) {
        return {
            "0": "",
            "1": "   ",
            "2": "      ",
            "3": "         "

        }[leve];
    }
};

module.exports = template;